<?php

use Illuminate\Database\Seeder;

class UserSeeder extends Seeder
{
	/**
	 * Run the database seeds.
	 * @return void
	 */
	public function run() {
		// 调用工厂方法
		factory(\App\Models\User::class, 10)->create();
		\App\Models\User::find(1)->update(['username'=>'admin']);
	}
}
